saving description with view using DXL

It's probably because it's a Friday afternoon, but I can't figure how to save a view description when I save a view. I've tried using viewDef and setting a description in that but it doesn't appear in the description field when I check using the GUI.

A fragment of my code - commented out as it didn't work is here:
 

// name view and save it
 
str1 = "06 - Test Procedure"
vw = view(str1)
 
// Cannot find out how to set view description
// str1 = "Shows columns needed when preparing test specification"
// setViewDescription( vwd, str1)
 
save(modCur, vw)

 


I had expected that setting the description using setViewDescription would result in including the description when I saved the view but it doesn't. vwd is defined as a ViewDef variable, vw as a View variable.

When I had the ViewDef in my code I was also getting 'Sorting' and 'Filtering' selected that I didn't want.

Any advice welcomed

Thanks

Jim

 


jbackus - Fri May 27 10:42:37 EDT 2011

Re: saving description with view using DXL
llandale - Fri May 27 16:08:02 EDT 2011

I'm weak on Views (all that "View" and "ViewDef" stuff makes my head swim), but it seems to me that if you define the ViewDef with a 'Description' you need to save the view using that ViewDef. Try this save:

save(modCur, vw, vwd)

If I'm wrong its a cynch someone will correct me and you'll get your answer.

I see that command in the DXL manual in section "View definitions", about 1/3rd way down.

  • Louie

Re: saving description with view using DXL
jbackus - Wed Jun 01 09:33:59 EDT 2011

llandale - Fri May 27 16:08:02 EDT 2011
I'm weak on Views (all that "View" and "ViewDef" stuff makes my head swim), but it seems to me that if you define the ViewDef with a 'Description' you need to save the view using that ViewDef. Try this save:

save(modCur, vw, vwd)

If I'm wrong its a cynch someone will correct me and you'll get your answer.

I see that command in the DXL manual in section "View definitions", about 1/3rd way down.

  • Louie

Louie,

Thanks for the tip. I don't think it's you being weak on views, I've spent the morning reading the DXL man pages relating to views and the documentation has made my head swim. Various aspects strike me as poorly explained and there is a shortage of examples showing how the various perms can be used together.

There are times when I get the impression that DXL has grown in diverse directions without clear guidance on the language's structure.

I'll have another try at adding a description.

Jim

Re: saving description with view using DXL
llandale - Wed Jun 01 13:32:30 EDT 2011

jbackus - Wed Jun 01 09:33:59 EDT 2011
Louie,

Thanks for the tip. I don't think it's you being weak on views, I've spent the morning reading the DXL man pages relating to views and the documentation has made my head swim. Various aspects strike me as poorly explained and there is a shortage of examples showing how the various perms can be used together.

There are times when I get the impression that DXL has grown in diverse directions without clear guidance on the language's structure.

I'll have another try at adding a description.

Jim

Jim Backus said:

There are times when I get the impression that DXL has grown in diverse directions
without clear guidance on the language's structure.

Wow. Sometimes folks get inspirational lightening bolts and derive fundamental useful truths far beyond their apparent abilities, talent, and knowledge. I had one when I figured out why the thing you are looking for is always in the last place you look ... is because of course you stop looking for it.

 

 

  • Louie


Having said that, its also true that sometime folks get inspirational lightening bolts and derive fundamentally false and detrimental "truths" far below their apparent abilities, talent, and knowledge. I had one of those when I realized the reason the American's were "better" than the Brits was because the bright industrious and handsome ones all left Britain for America 200-300 years ago. Yup, 5th grade was an "interesting" year for me but I digress...

 

 

Re: saving description with view using DXL
Mathias Mamsch - Thu Jun 02 10:48:26 EDT 2011

llandale - Wed Jun 01 13:32:30 EDT 2011

Jim Backus said:

There are times when I get the impression that DXL has grown in diverse directions
without clear guidance on the language's structure.

Wow. Sometimes folks get inspirational lightening bolts and derive fundamental useful truths far beyond their apparent abilities, talent, and knowledge. I had one when I figured out why the thing you are looking for is always in the last place you look ... is because of course you stop looking for it.

 

 

  • Louie


Having said that, its also true that sometime folks get inspirational lightening bolts and derive fundamentally false and detrimental "truths" far below their apparent abilities, talent, and knowledge. I had one of those when I realized the reason the American's were "better" than the Brits was because the bright industrious and handsome ones all left Britain for America 200-300 years ago. Yup, 5th grade was an "interesting" year for me but I digress...

 

 

Darn Louie, what kind of comment is that supposed to be? Have a bad day? At least if you want to post offending comments you might want to address people directly and not say: "Some times people make totally useless comments, don't they?". Regards, Mathias

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: saving description with view using DXL
llandale - Thu Jun 02 14:45:35 EDT 2011

Mathias Mamsch - Thu Jun 02 10:48:26 EDT 2011
Darn Louie, what kind of comment is that supposed to be? Have a bad day? At least if you want to post offending comments you might want to address people directly and not say: "Some times people make totally useless comments, don't they?". Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Actually, it was a compliment for having an actual inspiration comment. Yes, it indeed appears the DXL folks implement stuff without regard for continuity; and yes that explains many of its otherwise inexplicable features. Noting that is in fact an 'inspirational leap'. Following that I gave a self-depreciating pathic 'inspiration leap' I had myself.

I like dry humor. If you react poorly to something I say try re-reading it but putting an exclamation point on the end instead of a period. Lets practice:

Have a nice day.

Have a nice day!

The first sentance could possibly be interpreted: "Have a nice day, dim wit". The 2nd sentence has an invisible smiley at the end. ;)

  • Louie ;)

Re: saving description with view using DXL
Mathias Mamsch - Thu Jun 02 16:14:38 EDT 2011

llandale - Thu Jun 02 14:45:35 EDT 2011
Actually, it was a compliment for having an actual inspiration comment. Yes, it indeed appears the DXL folks implement stuff without regard for continuity; and yes that explains many of its otherwise inexplicable features. Noting that is in fact an 'inspirational leap'. Following that I gave a self-depreciating pathic 'inspiration leap' I had myself.

I like dry humor. If you react poorly to something I say try re-reading it but putting an exclamation point on the end instead of a period. Lets practice:

Have a nice day.

Have a nice day!

The first sentance could possibly be interpreted: "Have a nice day, dim wit". The 2nd sentence has an invisible smiley at the end. ;)

  • Louie ;)

Louie, you should notice that (at least for others) the meaning of what you say is not what you intended to say, but what other people read from it ... And I cannot find anything humorous or complimenting (not even dried humor) if you tell people that stuff they say is "far beyond their apparent abilities, talent or knowledge", as if you could judge anyones abilities, talent or knowledge here ... Mathias
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: saving description with view using DXL
llandale - Thu Jun 02 16:35:32 EDT 2011

Mathias Mamsch - Thu Jun 02 16:14:38 EDT 2011
Louie, you should notice that (at least for others) the meaning of what you say is not what you intended to say, but what other people read from it ... And I cannot find anything humorous or complimenting (not even dried humor) if you tell people that stuff they say is "far beyond their apparent abilities, talent or knowledge", as if you could judge anyones abilities, talent or knowledge here ... Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Ok, that one phrase was questionable indeed. But its purpose was to enhance the notion of "leap" not to denigrate the poster. I mean, someone who gets lots of 'brilliant' insights is not longer getting them, she's just getting 'routine' insights. If I somehow came up with the perfect balance between Capitalism and Socialism (where folks get some help without eroding their inclination to take responsibility for themselves, and folks get taxed without eroding their inclination to take responsibility for themselves), I think it reasonable to say it was a brilliant leap far beyond my normal abilities. ... after I got sued for plagerism.

Anyway, I think it indeed was a rather brilliant leap, I had not crystallized that notion before, and I was rather impressed when I read it.

  • Louie

Didn't you think it funny how I 'bragged' about solving one of the greatest mysteries of all time?

Re: saving description with view using DXL
SystemAdmin - Thu Jun 02 21:06:30 EDT 2011

llandale - Thu Jun 02 14:45:35 EDT 2011
Actually, it was a compliment for having an actual inspiration comment. Yes, it indeed appears the DXL folks implement stuff without regard for continuity; and yes that explains many of its otherwise inexplicable features. Noting that is in fact an 'inspirational leap'. Following that I gave a self-depreciating pathic 'inspiration leap' I had myself.

I like dry humor. If you react poorly to something I say try re-reading it but putting an exclamation point on the end instead of a period. Lets practice:

Have a nice day.

Have a nice day!

The first sentance could possibly be interpreted: "Have a nice day, dim wit". The 2nd sentence has an invisible smiley at the end. ;)

  • Louie ;)

Louie wrote: ".....The first sentence could possibly be interpreted: "Have a nice day, dim wit". The 2nd sentence has an invisible smiley at the end. ;)....."
LOL - I understand your dry humor Louie - keep it coming - hope the OCD is under control - mine is more of an OCD Engineering ADHD Stockholm Syndrome kinda problem with a side of Ergophobia thrown in just for good measure - hi to all of my friends (imaginary) at the clinic.


Paul Miller
Melbourne, Australia

Re: saving description with view using DXL
Tony_Goodman - Mon Jun 06 10:55:31 EDT 2011

SystemAdmin - Thu Jun 02 21:06:30 EDT 2011
Louie wrote: ".....The first sentence could possibly be interpreted: "Have a nice day, dim wit". The 2nd sentence has an invisible smiley at the end. ;)....."
LOL - I understand your dry humor Louie - keep it coming - hope the OCD is under control - mine is more of an OCD Engineering ADHD Stockholm Syndrome kinda problem with a side of Ergophobia thrown in just for good measure - hi to all of my friends (imaginary) at the clinic.


Paul Miller
Melbourne, Australia

An Englishman, a German, an Australian and an American walk into a bar...
Tony Goodman, Smart DXL Limited

Re: saving description with view using DXL
llandale - Mon Jun 06 15:59:05 EDT 2011

Tony_Goodman - Mon Jun 06 10:55:31 EDT 2011
An Englishman, a German, an Australian and an American walk into a bar...
Tony Goodman, Smart DXL Limited

... and the bartender asks "Is this some kind of joke?"